package com.ccx.coachsite.bus;

import java.util.ArrayList;
import java.util.List;

public class ManageInfo {
	private int hasClaimedNum;
	private int stillCanClaim;
	private List<CustomInfo> customs;
	
	public int getHasClaimedNum() {
		return hasClaimedNum;
	}
	public void setHasClaimedNum(int hasClaimedNum) {
		this.hasClaimedNum = hasClaimedNum;
	}
	public int getStillCanClaim() {
		return stillCanClaim;
	}
	public void setStillCanClaim(int stillCanClaim) {
		this.stillCanClaim = stillCanClaim;
	}
	public List<CustomInfo> getCustoms() {
		return customs;
	}
	
	public List<CustomInfo> getInviteCustoms(boolean isInvited)
	{
		List<CustomInfo> lst = new ArrayList<CustomInfo>();
		if(customs == null)
			return lst;
		for(int i = 0; i < customs.size(); i++)
		{
			if(customs.get(i).isInvited() == isInvited)
			{
				lst.add(customs.get(i));
			}
		}
		
		return lst;
	}
	
	public void setCustoms(List<CustomInfo> customs) {
		this.customs = customs;
	}
}
